package org.insia.smartposse.idao;

import java.util.List;

import org.insia.smartposse.metier.Project;
import org.insia.smartposse.metier.webservice.LightProject;
/**
 * Interface IProjectDAO
 * @author sok hout
 *
 */
public interface IProjectDAO 
extends IGenericDAO<Project, Long> {

	/**
	 * @return
	 */
	Project getLast();
	/**
	 * @param freelance_id
	 * @return
	 */
	List<Project> getFrom(long freelance_id);
	/**
	 * @param lproject
	 * @return
	 */
	LightProject createLightProject(LightProject lproject);
	/**
	 * @param lproject
	 * @return
	 */
	LightProject updateLightProject(LightProject lproject);
	/**
	 * @param projectSet
	 * @return
	 */
	List<LightProject> createLightProject(List<LightProject> projectSet);
	/**
	 * @param projectSet
	 * @return
	 */
	List<LightProject> updateLightProject(List<LightProject> projectSet);
}
